home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Minami 58
/
MINAMI58.ISO
/
Varios
/
Juegos Flash
/
Gold Yard.exe
/
scripts
/
DefineSprite_604
/
frame_2
/
DoAction.as
Wrap
Text File
|
2003-04-29
|
758b
|
33 lines
if(direction == 1)
{
setProperty("this", _Y, _Y--);
if(_Y < spiderY - (step - 1) * 30)
{
direction = 0;
}
}
else if(direction == 0)
{
setProperty("this", _Y, _Y++);
if(spiderY < _Y)
{
direction = 1;
}
}
depthx = _Y + _X - 60;
depthy = _Y - _X + 300;
call("position");
if(newdepth != depth)
{
setProperty("_root." add name add "_" add newdepth, _visible, 1);
setProperty("_root." add name add "_" add depth, _visible, 0);
call("direction");
}
depth = newdepth;
deltax = _X - getProperty("_root.pointer", _X);
deltay = _Y - getProperty("_root.pointer", _Y);
if(Number(math.abs(deltax)) < 25 and Number(math.abs(deltay)) < 25)
{
_root.library.drain(_root.library.damage_spider);
}